//
//  BallAnimation.h
//  FrogDrying
//
//  Created by Le Thanh Hai on 4/5/13.
//  Copyright 2013 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Global.h"
@class BallAnimation;

@protocol BallAnimationDelegate<NSObject>
-(void)ballExplosion:(BallAnimation*)ball;
@end

@interface BallAnimation : CCSprite <CCTargetedTouchDelegate> {
    CCAnimation *ballAnimation;
    CCAnimation *explosionAnimation;
    ColorType colour;
    NSString *name;
    CCSprite *frog;
}
@property(nonatomic, assign) ColorType colour;
@property(nonatomic, assign) id<BallAnimationDelegate>delegate;
-(id)initWithColor:(ColorType)color;
-(void)resetBall;
-(void)explosion;
-(CGRect)rect;
-(void)addFrogWith:(ColorType)type;
@end
